<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="hzModal/modal.css" />
		<script type="text/javascript" src="hzModal/hzModal.js" ></script>
	</head>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
	</style>
	<body>
		<button onclick="showModal()">按钮点击</button>
		
		<script type="text/javascript">
			function showModal(){
				//hzModal 有三个属性 分别为  success, error,warn
				hzModal.warn({
					content:"这是一段话",//默认这是内容
					showCancel:true,//默认false
					rightBtnText:'确定OK',//默认确定
					leftBtntext:"取消cancel",//默认取消
					showMask:false,//默认false
				}).then(confirm=>{
					console.log('点击了确定')
				}).catch(cancel=>{
					console.log('点击了取消')
				})
			}
		</script>
	</body>
</html>
